package com.dk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor//无参构造
@AllArgsConstructor//有参构造
@TableName("tb_models")
public class Tbmodels {

    @TableId(value = "models_id",type = IdType.AUTO)
    private Long modelsId;

    @TableField(value = "models_name")
    private String modelsName;

    @TableField(value = "years_id")
    private Long yearsId;
}
